Year (VBScript)

The Year command converts a DateTime variant into a String variant for readability. The string variant is returned by this function.

Syntax

YEAR ( dateTime )